package com.zyn.java.entity;

/**
 * @author zhangyanan
 * @description
 * @date 2017/11/1 0001 23:34
 */

public class Cat {
    private int xingfu;
    private int haogan;
    private String name;

    public void weiyang(){
        if(this.name.equals("siyangyuan")){
            this.xingfu++;
            this.haogan++;
        }

        if(this.name.equals("youke")){
            this.xingfu--;
            this.haogan--;
        }

    }

}
